﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="CARE.Views.NewElement"
           Width="Auto" Height="Auto" 
           Title="Create new node in Disease" mc:Ignorable="d">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
			<RowDefinition />
            <RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Create new node with selected color."  Foreground="Black" Margin="5,5,5,20"/>   

<Grid Grid.Row="1">
<Grid.RowDefinitions>
			 <RowDefinition />
			  <RowDefinition />
			   <RowDefinition />
			    <RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
	<ColumnDefinition Width="Auto" />
	<ColumnDefinition />
</Grid.ColumnDefinitions>
        
        <TextBox Grid.Row="0" Grid.Column="1"  x:Name="Name" Height="29" TextWrapping="Wrap" Margin="5">
            </TextBox>

            <ComboBox Grid.Row="1" Grid.Column="1" x:Name="ComboBoxStateNames" Height="29" d:LayoutOverrides="Height" Margin="5" IsEnabled="False"  />
        <ComboBox Grid.Row="2" Grid.Column="1" x:Name="ComboBoxColors" Height="29" Margin="5"  />
        <CheckBox Grid.Row="3" Grid.Column="1" x:Name="StartState" IsChecked="true" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="105">
            <TextBlock><Run Text="Is Start State"/></TextBlock>
        </CheckBox>
        <TextBlock Grid.Row="0" VerticalAlignment="Center" Text="State Name:" TextWrapping="Wrap"/>
		<TextBlock Grid.Row="1" VerticalAlignment="Center" Text="State Name:" TextWrapping="Wrap"/>
		<TextBlock Grid.Row="2" VerticalAlignment="Center" Text="Select color:" TextWrapping="Wrap"/>
</Grid>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="2" />
    </Grid>
</controls:ChildWindow>